<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			const dom = uni.requireNativePlugin('dom')
			dom.addRule('fontFace',{
				fontFamily: 'iconfont',
				src: "url('http://at.alicdn.com/t/c/font_4582944_2prbnd78jov.ttf?t=1720513659050')"
			})
			dom.addRule('fontFace', {
				fontFamily: 'PingFang SC-Bold, PingFang SC',
				src: "url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSansCN-Bold.ttf')"
			})
			dom.addRule('fontFace', {
				fontFamily: 'PingFang SC-Regular, PingFang SC',
				src: "url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSansCN-Regular.ttf')"
			})
			dom.addRule('fontFace', {
				fontFamily: 'PingFang SC-Heavy, PingFang SC',
				src: "url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSansCN-Heavy.ttf')"
			})
			dom.addRule('fontFace', {
				fontFamily: 'SourceHanSerifCN-Heavy',
				src: "url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSerifCN-Heavy-4.ttf')"
			})
			dom.addRule('fontFace', {
				fontFamily: 'Arial-Regular, Arial',
				src: "url('https://www.wxmblog.com/wxmapi/ttf/arial.ttf')"
			})
			dom.addRule('fontFace', {
				fontFamily: 'Source Han Sans CN-Regular, Source Han Sans CN',
				src: "url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSansCN-Regular.ttf')"
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	.root {
		flex: 1;
	}
</style>
